<script id="rowBar" type="text/html">
    {{# if(d.installed==1){ }}
        <a _href="{:U('uninstall')}" class="layui-btn layui-btn-xs layui-btn-danger"data-option="{pullData:'name',confirm:'确定卸载该插件？'}" lay-event="ajaxGet">卸载</a>
        {{# if(d.status==1){ }}
            <a _href="{:U('start',array('status'=>0))}" class="layui-btn layui-btn-xs layui-btn-danger"data-option="{pullData:'name',confirm:'确定关闭该插件？'}" lay-event="ajaxGet">关闭</a>
            {{# if(d.setting){ }}
                {{# if(typeof d.setting == 'object'){ }}
                    {{ d.setting.join('') }}
                {{# }else{ }}
                    {{ d.setting }}
                {{# } }}
            {{# } }}
        {{# }else{ }}
            <a _href="{:U('start',array('status'=>1))}" class="layui-btn layui-btn-xs layui-btn-normal" data-option="{pullData:'name',confirm:'确定开启该插件？'}" lay-event="ajaxGet">开启</a>
        {{# } }}
    {{# }else{ }}
        <a _href="{:U('install')}" class="layui-btn layui-btn-xs layui-btn-normal"data-option="{pullData:'name',confirm:'确定安装该插件？'}" lay-event="ajaxGet">安装</a>
    {{# } }}
</script>